/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const productRouter = {
  path: '/product',
  component: Layout,
  redirect: '/product/index',
  name: 'Table',
  meta: {
    title: 'product',
    icon: 'example',
    roles:['other','admin','product']
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/product/indexProduct'),
      name: 'productIndex',
      meta: { title: 'productIndex' }
    }
  ]
}
export default productRouter
